package com.lagou.edu.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.lagou.edu.factory.BeanFactory;

public class LoadBeanListener implements ServletContextListener {

    @Override
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        BeanFactory.loadBean();
    }

    @Override
    public void contextDestroyed(ServletContextEvent servletContextEvent) {

    }

}
